package com.sixth.convert;


import org.springframework.core.convert.converter.Converter;

public class IntegerArr2String implements Converter<Integer[],String> {


    @Override
    public String convert(Integer[] source) {

        String goods = "[]";
        if (source.length>0){
            goods="[";
            for (Integer integer : source) {
                goods = integer+",";
            }
            goods = goods.substring(0,goods.length()-1);
            goods = goods+"]";
        }

        return goods;
    }
}
